package sepe.chenli.unit4.task4_2;

import sepe.chenli.unit4.task4_1.HireUser;

import java.util.Date;

public class HireUserTest1 {
    public static void main(String[] args) {
        System.out.println("通过无参数的构造方法创建对象！");
        Customer1 customer=new Customer1();
        HireUser1 hireUser=new HireUser1();
        System.out.println("*********************");
        System.out.println("通过带参数的构造方法创建对象");
        Customer1 customer1=new Customer1(1001,"张宇",'男',"86338180",
                "86338129", "zy@qq.com","353068128",
                "32108199012251976","江苏省常州市武进区");
        Date recordDate=new Date();
        HireUser1 hireUser1=new HireUser1(1001,"张宇",'男',"86338180",
                "86338129", "zy@qq.com","353068128",
                "32108199012251976","江苏省常州市武进区",1001,recordDate);
        System.out.println("**********************");
        Customer1 customer2=new HireUser1();
        customer2.setUserName("张辽");
        System.out.println("**********************");
        Customer1 customer3=new HireUser1();
        HireUser1 hireUser3=(HireUser1)customer3;
        customer3.setUserName("孙权");
        hireUser3.showUserName();


    }
}
